<!DOCTYPE html>
<html>
<head>
    <title>FastAPI Static Page with Vue (from Miniprogram Home)</title>
    <script src="js/vue@2.6.14/dist/vue.min.js"></script>
    <style>
        /* Reset default browser styles */
        html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow-x: hidden; /* Prevent horizontal scrollbar */
        }

        body {
            font-family: sans-serif;
            background-color: #f8f8f8;
            color: #333;
            display: flex;
            flex-direction: column;
        }
        .container {
            flex: 1; /* 让内容区域填充剩余空间 */
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%; /* 确保容器宽度为100% */
            padding: 0; /* 移除容器内边距 */
            box-sizing: border-box; /* 确保padding和border不会增加总宽度 */
            overflow-y: auto; /* 允许内容滚动 */
            padding-bottom: 120px; /* 为tabbar留出空间，与tabbar高度一致 */
        }

        .image-wrapper {
            width: 100%;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .other-image {
            width: 100%;
            display: block;
            margin: 0;
            padding: 0;
            border: none;
            max-width: 100%;
            height: auto;
        }

        /* Tabbar styles */
        .tabbar {
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 120px; /* Adjusted tabbar height */
            background-color: #fff;
            border-top: 1px solid #eee;
            box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
            z-index: 1000;
        }

        .tabbar-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            color: #666;
            text-decoration: none;
            font-size: 14px;
            padding: 5px 0;
        }

        .tabbar-item.active {
            color: #007bff; /* Active color */
        }

        .tabbar-item img {
            width: 40px;
            height: 40px;
            margin-bottom: 2px;
        }
    </style>
</head>
<body>
    <div id="app" class="container">
        <div class="image-wrapper" v-for="(item, index) in otherImages" :key="index">
            <img class="other-image" :src="item" mode="widthFix">
        </div>
    </div>

    <div class="tabbar">
        <a href="/rzwl/static/index.html" class="tabbar-item active">
            <img src="/rzwl/static/images/tab_home_active.png" alt="首页">
            <span>首页</span>
        </a>
        <a href="/rzwl/static/enroll.html" class="tabbar-item">
            <img src="/rzwl/static/images/tab_enroll.png" alt="报名">
            <span>报名</span>
        </a>
        <a href="/rzwl/static/pay.html" class="tabbar-item">
            <img src="/rzwl/static/images/tab_pay.png" alt="支付">
            <span>支付</span>
        </a>
        <a href="/rzwl/static/me.html" class="tabbar-item">
            <img src="/rzwl/static/images/tab_me.png" alt="我的">
            <span>我的</span>
        </a>
    </div>

    <script>
        new Vue({
            el: '#app',
            data: {
                otherImages: [
                    '/rzwl/static/images/00-banner.jpg',
                    '/rzwl/static/images/01-活动背景.jpg',
                    '/rzwl/static/images/02-培训形式.jpg',
                    '/rzwl/static/images/03-课程安排.jpg',
                    '/rzwl/static/images/04-培训费用.jpg',
                    '/rzwl/static/images/05-培训特色1.jpg',
                    '/rzwl/static/images/06-培训特色2.jpg',
                    '/rzwl/static/images/07-报名信息.jpg'
                ]
            },
            mounted: function() {
                console.log('Home 页面加载');
            }
        });
    </script>
</body>
</html>
